package com.sinochem.yunlian.ship.base.mapper;

import com.sinochem.yunlian.ship.base.entity.BsMaterialCategoryFav;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author wh
 * @email ${email}
 * @date 2017-12-11 15:46:51
 */

public interface BsMaterialCategoryFavMapper extends Mapper<BsMaterialCategoryFav> {
    /**
     * 利用公司ID获取收藏的货品
     * @param companyId
     * @return
     */
	List<BsMaterialCategoryFav> selectMaterialCategroyFavListByUserId(@Param("companyId") Long companyId);

    int checkMaterialCategroyFav(@Param("companyId") Long companyId, @Param("materialCategoryId") Long materialCategoryId);

    int deleteMaterialCategroyFav(@Param("companyId") Long companyId, @Param("materialCategoryId") Long materialCategoryId);

    void updateMaterialCategoryFav(Map inMap);
}
